package org.ellwood.framework.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @BelongsProject: ellwood-pro
 * @BelongsPackage: org.ellwood.framework.config
 * @BelongsClass: RestTemplateConfig
 * @Description: // RestTemplateConfig配置
 * @Author: ellwood
 * @CreateTime: 2024/1/30 - 16:10
 * @Version: V1.0.0
 */
@Configuration
public class RestTemplateConfig {

    @Bean
    @LoadBalanced
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

}
